from fdfs_client.client import Fdfs_client


fdsf_client = Fdfs_client('./client.conf')

ret = fdsf_client.upload_by_filename('/home/python/Desktop/手动ip.png')

print(ret)


"""
'Group name': 'group1', 'Remote file_id': 'group1/M00/00/00/wKgYgV0sRqiAAWYFAAdLz8TlGPs490.png', 'Status': 'Upload successed.', 'Local file name': '/home/python/Desktop/手动ip.png', 'Uploaded size': '466.00KB', 'Storage IP': '192.168.24.129'}
"""